package com.zbkj.common.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "OrderCancelRequest", description = "订单取消请求对象")
public class OrderCancelRequest {

    @ApiModelProperty(value = "订单号")
    @NotBlank(message = "订单号不能为空")
    private String orderNo;

    @ApiModelProperty(value = "取消原因")
    @NotBlank(message = "取消原因不能为空")
    private String cancelReason;

    @ApiModelProperty(value = "取消订单用户类型(1用户取消  2配送专员取消)")
    private Integer cancelOrderUserType = 1;
}
